package com.jt.controller;

import com.jt.pojo.Itemcat;
import com.jt.service.ItemCatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/itemCat")
public class ItemCatController {
    @Autowired
    private ItemCatService itemCatService;
    @RequestMapping("/findItemCatById")
    public Itemcat findNameByrows(Integer id){
        return itemCatService.findItemCatById(id);
    }
}
